package cn.autowired.exam.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 */
@TableName("exam_msg")
public class Msg extends Model<Msg> {

    private static final long serialVersionUID = 1L;

	private String studentNo;
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 提问
     */
	private String message;
    /**
     * 回复
     */
	private String res;
    /**
     * 提问者自定义昵称
     */
	private String nickname;
    /**
     * 老师id

     */
	private Integer teacherId;


	public String getStudentNo() {
		return studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

public static interface Field{
		String studentNo = "studentNo";
		String id = "id";
		String message = "message";
		String res = "res";
		String nickname = "nickname";
		String teacherId = "teacherId";
	}
}
